// Package member
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2023 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
package member

import (
	"hotgo/internal/model/entity"

	"github.com/gogf/gf/v2/frame/g"
)

// GetIdByCodeReq 通过邀请码获取用户ID
type GetIdByCodeReq struct {
	g.Meta `path:"/member/getIdByCode" method:"post" tags:"用户" summary:"通过邀请码获取用户ID"`
	Code   string `json:"code"   dc:"邀请码"`
}

type GetIdByCodeRes struct{}

type GetUserReq struct {
	g.Meta `path:"/member/getUser" method:"post" tags:"用户" summary:"获取用户信息"`
}

type GetUserRes struct {
	Data g.Map `json:"data"`
}

type UserAddressReq struct {
	g.Meta `path:"/member/userAddress" method:"post" tags:"用户" summary:"获取用户地址列表"`
}
type UserAddressRes struct {
	List []*entity.EpMemberAddress `json:"list"`
}
